import { _decorator, Component, EPhysics2DDrawFlags, Node, PhysicsSystem2D,view, ResolutionPolicy } from 'cc';
import { JoystickScript } from './JoystickScript';
const { ccclass, property } = _decorator;

@ccclass('HeroTypeScript')
export class HeroTypeScript extends Component {

    @property({ type: JoystickScript, tooltip: "摇杆节点" })
    private joystick: JoystickScript;

    start() {
        //  PhysicsSystem2D.instance.debugDrawFlags = EPhysics2DDrawFlags.Aabb
        //  |EPhysics2DDrawFlags.Pair 
        //  |EPhysics2DDrawFlags.CenterOfMass 
        //  |EPhysics2DDrawFlags.Joint 
        //  |EPhysics2DDrawFlags.Shape;

        view.setDesignResolutionSize(1280, 720, ResolutionPolicy.SHOW_ALL);
    }

    update(deltaTime: number) {
        
    }
}


